package com.teama4.shop.service;

import com.teama4.shop.domain.CommodityOrders;
import com.teama4.shop.domain.CommodityOrdersExample;
import com.teama4.shop.mapper.CommodityOrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityOrdersServiceImpl implements CommodityOrdersService {
    @Autowired
    private CommodityOrdersMapper commodityOrdersMapper;

    @Override
    public long countByExample(CommodityOrdersExample example) {
        return commodityOrdersMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CommodityOrdersExample example) {
        return commodityOrdersMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return commodityOrdersMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CommodityOrders record) {
        return commodityOrdersMapper.insert(record);
    }

    @Override
    public int insertSelective(CommodityOrders record) {
        return commodityOrdersMapper.insertSelective(record);
    }

    @Override
    public List<CommodityOrders> selectByOrderId(int id) {
        return commodityOrdersMapper.selectByOrderId(id);
    }

    @Override
    public CommodityOrders selectByPrimaryKey(Integer id) {
        return commodityOrdersMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CommodityOrders record, CommodityOrdersExample example) {
        return commodityOrdersMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CommodityOrders record, CommodityOrdersExample example) {
        return commodityOrdersMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CommodityOrders record) {
        return commodityOrdersMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CommodityOrders record) {
        return commodityOrdersMapper.updateByPrimaryKey(record);
    }
}
